|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcontrol.Community
public class Community
This class permits to create the Cartesian product of all community states and all final states of a set of available services
| Field Summary | |
|---|---|
private AvailableServices |
availableService
|
private java.util.Set<CState> |
CFStates
|
private java.util.Set<CState> |
CStates
|
| Constructor Summary | |
|---|---|
Community(AvailableServices as)
|
|
| Method Summary | |
|---|---|
private void |
createCommunityStates(Service s,
int loop,
CState CSRecord)
creates all states of the community as a Cartesian product of states of available services |
private void |
createFinalCommunityState(Service s,
int loop,
CState CSRecord)
creates all final states of the community as a Cartesian product of final states of available services |
java.util.Iterator<CState> |
getCommunityStates()
returns all community states created with a Cartesian product of all states of available services |
java.util.Iterator<CState> |
getFinalCommunityStates()
returns community states which are final states as a Cartesian product of all final states of every available services |
CState |
getInitialStates()
gets a community state that is final |
Service |
getService(int index)
gets the service in the specified position |
int |
getServicePosition(Service service)
gets the position of a service in the set of available services |
boolean |
isFinalCommunityState(CState cs)
checks if a state of the community is final |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private AvailableServices availableService
private java.util.Set<CState> CStates
private java.util.Set<CState> CFStates
| Constructor Detail |
|---|
public Community(AvailableServices as)
| Method Detail |
|---|
private void createCommunityStates(Service s,
int loop,
CState CSRecord)
s - - first service of the communityloop - - the position in a community state where you want to place the states of a servicepublic java.util.Iterator<CState> getCommunityStates()
private void createFinalCommunityState(Service s,
int loop,
CState CSRecord)
s - - first service of the communityloop - - the position in a community state where you want to place the states of a servicepublic java.util.Iterator<CState> getFinalCommunityStates()
public Service getService(int index)
index - - the position
public CState getInitialStates()
public int getServicePosition(Service service)
service - - the service we want to find
public boolean isFinalCommunityState(CState cs)
cs - - the community's state to check
public java.lang.String toString()
toString in class java.lang.Objectpublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||